// import com.alibaba.druid.sql.ast.SQLName_ptr;
// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;
#pragma once
#include "../SQLObjectImpl.h"
#include "SQLAlterTableItem.h"

class SQLAlterTableRenameConstraint : virtual public SQLObjectImpl ,virtual public SQLAlterTableItem
{
public:
  SQLName_ptr constraint;
  SQLName_ptr to;

  SQLAlterTableRenameConstraint();
  SHAREDOBJECT(SQLAlterTableRenameConstraint);

  // @Override
  void accept0(SQLASTVisitor_ptr visitor);
  SQLName_ptr getConstraint();

  void setConstraint(SQLName_ptr constraint);

  SQLName_ptr getTo();

  void setTo(SQLName_ptr to);
};
